@import 'variables.less';

.tabs-nav-center {
    .ivu-tabs-nav-wrap {
        text-align: center;
    }
    .ivu-tabs-nav-scroll {
        display: inline-block;
        vertical-align: middle;
    }
}

.system-layout {
    height: 100%;
}

.system-sidebar {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    // position: fixed;
    // top: 60px;
    // bottom: 0;
    // left: 0;
    z-index: 99;
    background-color: @primary_color;
    overflow-y: auto;
    overflow-x: hidden;
    &::-webkit-scrollbar {
        width: 0 !important;
    }
    & {
        overflow: -moz-scrollbars-none;
        -ms-overflow-style: none;
    }
    .user-info {
        display: flex;
        align-items: center;
        flex-direction: column;
        .user-avatar {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
            border: 1px solid #fff;
            border-radius: 50%;
            margin: 20px 0 5px;
            cursor: pointer;
        }
        .avatar {
            width: 75px;
            height: 75px;
            border-radius: 50%;
            object-fit: cover;
            display: inline-block;
        }
        .username {
            max-width: 100%;
            line-height: 20px;
            padding: 0 10px;
            color: #fff;
            margin-bottom: 10px;
            text-align: center;
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: pointer;
        }
    }
    .ivu-menu-light {
        padding-bottom: 20px;
        background-color: @primary_color;
    }
    .ivu-menu-vertical.ivu-menu-light:after {
        width: 0;
    }
    .ivu-menu-light.ivu-menu-vertical .ivu-menu-item,
    .ivu-menu-light.ivu-menu-vertical .ivu-menu-submenu-title {
        color: @menu_font_color;
        border-bottom: 1px solid @menu_border_color;
        padding: 17px 20px;
    }
    .ivu-menu-vertical .ivu-menu-item:hover, .ivu-menu-vertical .ivu-menu-submenu-title:hover,
    .ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu) {
        color: #fff;
        background-color: @menu_hover_color;
    }

    .ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:after,
    .ivu-menu-vertical .ivu-menu-item:hover:after,
    .ivu-menu-vertical .ivu-menu-submenu-title:hover:after {
        width: 3px;
        background-color: #fff;
    }
    .ivu-menu-vertical .ivu-menu-item:hover:after,
    .ivu-menu-vertical .ivu-menu-submenu-title:hover:after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
    }
    .ivu-menu-vertical .ivu-menu-submenu-title-icon {
        font-size: 18px;
    }
    .ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item {
        color: @submenu_font_color;
        background-color: @submenu_bg_color;
        padding-left: 40px !important;
        padding-right: 45px !important;
        &:hover {
            color: @menu_font_color;
            background-color: @menu_hover_color;
        }
    }
    .ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item:after {
        background-color: @menu_hover_color;
    }
    .ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item:hover:after,
    .ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active:after {
        background-color: #fff;
    }
}

.system-header {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background:url('../images/bg.png') repeat-x;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    .inner {
        padding: 0 20px;
        display: flex;
        align-items: center;
        .logo {
            color: #fff;
            font-size: 18px;
            display: flex;
            align-items: center;
            img {
                width: 36px;
                margin-right: 10px;
            }
            .title {
                font-weight: 700;
            }
        }
        .navbar {
            margin-left: 60px;
            .ivu-menu-dark {
                background-color: transparent;
                &.ivu-menu-horizontal .ivu-menu-item, &.ivu-menu-horizontal .ivu-menu-submenu {
                    color: rgba(255, 255, 255, 0.65);
                    font-weight: 500;
                }
                &.ivu-menu-horizontal .ivu-menu-item-active, &.ivu-menu-horizontal .ivu-menu-item:hover, 
                &.ivu-menu-horizontal .ivu-menu-submenu-active, &.ivu-menu-horizontal .ivu-menu-submenu:hover {
                    color: #EB4F4D;
                }
            }
        }
        .right {
            margin-left: auto;
            display: flex;
            align-items: center;
            .ivu-select-dropdown {
                margin: 0;
            }
            .message-dropdown { 
                .ivu-select-dropdown {
                    padding-bottom: 0;
                }
                .ivu-dropdown-menu {
                    width: 300px;
                }
                .ivu-dropdown-item {
                    padding: 0;
                }
                .ivu-list-item-meta {
                    padding: 8px 16px;
                    overflow: hidden;
                    border-bottom: 1px solid #e8eaec;
                    &:hover {
                        background-color: #fce9e9;
                    }
                    .ivu-list-item-meta-content {
                        overflow: hidden;
                    }
                    .ivu-list-item-meta-description {
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }
                }
                .ivu-dropdown-item:last-of-type {
                    border-bottom: none;
                }
                .ivu-avatar-image {
                    border: 1px solid #eee;
                }
                .ivu-divider-horizontal {
                    margin: 0;
                }
            }
            .ivu-list {
                position: relative;
                max-height: 240px;
                overflow-y: auto;
            }
            .justify-between {
                .ivu-list-item-meta-content {
                    display: flex;
                    justify-content: space-between;
                }
                .ivu-list-item-meta-title {
                    font-weight: 600;
                }
            }
            .more-btn {
                display: block;
                margin: 5px 0;
            }
            .tool-message {
                width: 60px;
                height: 60px;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                &:hover {
                    background-color: @primary_color;
                }
            }
            .tool-group {
                padding: 0 5px;
            }
            .tool-item {
                color: #fff;
                cursor: pointer;
                i {
                    margin: 0 5px;
                }
            }
            .system-dropdown {
                .ivu-select-dropdown {
                    padding: 10px 0;
                }
                .ivu-dropdown-item {
                    line-height: 36px;
                    padding: 0 20px;
                    &:hover {
                        background-color: #fce9e9;
                        color: #e84e4c;
                    }
                }
            }
        }
    }
}

.system-footer {
    color: #666666;
    font-size: 13px;
    text-align: center;
    background-color: #f5f7f9;
    .inner {
        line-height: 20px;
        padding: 10px 0;
        span {
            display: inline-block;
            margin: 0 5px;
        }
    }
}

.upload-dialog {
    .ivu-modal-body {
        position: relative;
    }
    .position-progress {
        position: absolute;
        top: -8px;
        left: 0;
    }
    .ivu-progress-bg {
        border-radius: 0;
    }
    .ivu-progress-success .ivu-progress-bg {
        background-color: #EB4F4D;
    }
}
.page-pin{
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    i{
        font-size: 22px;
        vertical-align: middle;
        margin: 0 5px;
        color: #e32322;
    }
}

.login-header {
    height: 60px;
    line-height: 60px;
    padding: 0 30px;
    font-size: 24px;
    background-color: @login_color;
    .logo {
        color: #fff;
        font-size: 18px;
        display: flex;
        align-items: center;
        img {
            width: 36px;
            margin-right: 10px;
        }
        .title {
            font-weight: 700;
            font-size: 22px;
        }
    }
}
